﻿using HAL9006.Terminal;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Umbraco.Web.BaseRest;

namespace HAL9006.Blog.Base
{
    [RestExtension("terminal")]
    public class Terminal
    {
        [RestExtensionMethod(AllowAll = true, ReturnXml = false)]
        public static string execute(string command) //base methods are case sensitive, made lowercase for JS
        {
            return new CommandMap().Execute(command);
        }
    }
}